<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><{$site_title}>管理中心</title>
<{include file="js.html"}>
<script type="text/javascript">
  //删除
  function del(url){
    var id="";
    $("input:[name=checkbox]:[checked=true]").each(function(){
      id+=$(this).val()+",";
    })
    $.post(
      url,
      {id:id},
      function(data){
        if(data=='1'){
          $("input:[name=checkbox]:[checked=true]").parent().parent().remove();
        }else if(data=='2'){
          alert("所选角色中有绑定帐号，无法删除")
        }
      }
    )
  }

</script>
</head>

<body>
<div class="box">
<div style="background:url(images/mainbj.jpg) repeat-x; line-height:31px; height:31px;">
<table border="0" cellpadding="0" cellspacing="0">
<tr><td width="41" align="center">
<img src="images/biao1.jpg" /></td>
<td><strong>当前位置</strong>：管理 &gt; 角色列表</td>
</tr></table>
</div>

<form action="" method="post">
<table class="lefttab" cellpadding="0" cellspacing="0">
<tbody>
<tr><td colspan="4"><div style="height:26px; text-align:left; line-height:26px; background:url(images/xbj1.jpg) repeat-x; border:1px solid #e9f5fa;font-weight:bold;">&nbsp;&nbsp;搜索</div>
</td></tr>
<tr>
  <td align="right" ><strong>名称</strong>：</td>
  <td width="400" align="left">&nbsp;<input type="text" name="title" value="<{$search.title}>"/></td>
   <td colspan="4" width="300" align="left" >&nbsp;<input type="submit" value="搜索" ></td>
</tr>

</tbody></table>
</form>

<table width="849" cellpadding="0" cellspacing="0" class="lefttab">
<tr><td colspan="7"><div style="height:26px; text-align:left; line-height:26px; background:url(images/xbj1.jpg) repeat-x; border:1px solid #e9f5fa;font-weight:bold;">&nbsp;&nbsp;角色列表</div>
</td></tr>
<tr style="background:#dceff6;" id="top">
  <td><strong>选择</strong></td>
  <td><strong>角色</strong></td>
  <td><strong>管理操作</strong></td>
</tr>
<{foreach item=row from=$row}>
<tr>
  <td> <input type="checkbox" name="checkbox" value="<{$row.id}>" /></td>
  <td><{$row.group_name}></td>
  <td class="xiugai">
  	<a href="group_name_add.php?id=<{$row.id}>">修改</a>
  </td>
</tr>
<{/foreach}>

<!-- <tr id="addTr">
  <td>&nbsp;</td>
  <td colspan="1">
  <input type="text" class="add_value" value=""/>
  <input type="hidden" class="add_value" value="0"/>
  </td>
  <td class="xiugai">
    <a href="javascript:;" id="add" url="group_name_list.php?action=add" add_type="end">添加</a>
  </td>
</tr> -->

</table>
  <div class="fenye" >
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;&nbsp;<a onclick='allcheck()' href="javascript:void(0)">全选</a> | <a onclick="del('group_name_list.php?action=del')" href="javascript:void(0)">删除</a> &nbsp;&nbsp;&nbsp;&nbsp;<{$page}></p>
  </div>

</div>
</body>
</html>